home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / DATABASE / INDICES0 / !Indices│ / !Help next >
Encoding:
Text File  |  1995-01-27  |  14.5 KB  |  358 lines

  1.  
  2.  
  3.                            Indices³ v0.86
  4.  
  5.           RISC OS 3 Programmer's Reference Manual Indices
  6.  
  7.                       by Tracy of SICK & Svlad
  8.  
  9.               compiled by Merlin Hughes & Svlad Cjelli
  10.  
  11.   the RISC OS 3 PRMs are Copyright © 1992 Acorn Computers Limited
  12.  
  13.                         all rights reserved
  14.                 this software copyright © 1995 SICK
  15.            (Merlin Hughes, Conrad Hughes & Andrew Block)
  16.  
  17.                           15 January 1995
  18.  
  19.                                 -o-
  20.  
  21.   Many  thanks to Acorn for  producing the  RO3  PRMs  and  giving
  22.   permission  for   the  index  sections   included  here   to  be
  23.   distributed in this application.
  24.  
  25.                                 -o-
  26.  
  27.   This application  provides an electronic index of the RISC  OS 3
  28.   Programmer's Reference Manuals, and a Wimp and CLI front end for
  29.   searching through this.
  30.  
  31.   For the Wimp front end to function correctly, it must have write
  32.   access to <Wimp$ScrapDir>.
  33.  
  34.                                 -o-
  35.  
  36.   When you  run this application, an icon appears  on the icon-bar
  37.   letting you easily search the index  files.  Simply click select
  38.   or adjust on the icon, and a  search  window will pop  up.  Type
  39.   your  request in, hit  return, and  the  search will start.  The
  40.   output will soon jump up in an editor window.  A beep  indicates
  41.   that there were no matches.
  42.  
  43.   For  example,  to  search for  PRM references to 'Pointer', type
  44.   'Pointer' (without the quotes)  into the search  window.  Output
  45.   lists the volume number, page number, operation, and description
  46.   (eg "1-637 OS_Byte 106   Select pointer / activate  mouse").  In
  47.   this case,  it is volume 1,  page 637,  operation 'OS_Byte 106',
  48.   and an associated description.
  49.  
  50.                                 -o-
  51.  
  52.   If you click menu on the icon, a small menu appears:
  53.  
  54. . 'Info' leads to the normal information window.
  55.  
  56. . 'Options' leads to an options window.
  57.  
  58. . 'Quit' quits the Wimp task; it does not kill the module.
  59.  
  60.                                 -o-
  61.  
  62.   The options window provides the following functions:
  63.  
  64. . If 'Clear search window' is selected, whenever the search window
  65.   is opened, the search text is cleared.  Otherwise it retains the
  66.   text last entered into it.
  67.  
  68. . If 'Search in taskwindow' is selected, searches are performed in
  69.   a task-window; this  runs  the search in the background allowing
  70.   you to do some work during the moments of the search.
  71.  
  72. . If  'Install  in  Resources'  is selected, the  index files  are
  73.   installed in ResourceFS  when the Wimp task is started (and when
  74.   you click on the OK button); otherwise, searches run from disk.
  75.  
  76. . If 'Hot key' is selected, a certain keypress will pop the search
  77.   window up under the  pointer.  To choose this  key, click in the
  78.   box beside the option button; it will invert, waiting for you to
  79.   press a  key;  the key you press becomes the new hot key.  Thus,
  80.   if you want Ctrl-F1 to bring up the search window, press Ctrl-F1
  81.   when the box is inverted.  The number inside the box is the Wimp
  82.   code for the current hot key.  The  search window may not pop up
  83.   if you hit the hot key while the caret is inside a window.
  84.  
  85. . If 'Buffer file in RMA'  is selected,  the output of a search is
  86.   stored  in  the RMA  before  being  written to  disk.  This  may
  87.   considerably  speed  things  up,  and  should not  lead  to  RMA
  88.   fragmentation.  It  will  temporarily  require a  bit  more free
  89.   memory than  would  the  resulting output file.  It will have no
  90.   effect if 'Search in taskwindow' is selected.
  91.  
  92. . 'OK' accepts the state  of the option buttons.  Until you  click
  93.   on  this, operation  continues regardless of any changes  in the
  94.   option buttons; click on this to accept your choices.
  95.  
  96. . 'Save'  accepts  and  saves  the  options.  These  are  then the
  97.   default settings for when you next use the indices.
  98.  
  99. . 'Cancel'  cancels your selection  and retains the original state
  100.   of the options.
  101.  
  102.                                 -o-
  103.  
  104.   The searching facilities are fairly sophisticated; the  matching
  105.   is wildcarded case insensitive.  This means that you do not have
  106.   to get the  capital letters in the right places, nor do you have
  107.   to type in the  complete name of the search topic.  Thus looking
  108.   for 'POInt' is  as good as 'Pointer';  it  will match a few more
  109.   cases ('Floating Point' etc.) but involves less typing.
  110.  
  111.   There is also a single-character wildcard; wherever a '.' occurs
  112.   in the search string, any character will match it.  Thus 'P.int'
  113.   will match both 'Point' and 'Print'.
  114.  
  115.   The indices are  separated  into several files  corresponding to
  116.   the different sections they cover.  For example, SWIs are stored
  117.   in a 'SWI' file while information on reason codes is stored in a
  118.   'Reason' file.  If you  want  to just search a particular  file,
  119.   start your search with  '-<section>'.  For example, '-SWI Point'
  120.   will match 'Point' in the  file  'SWI'.  If  you  want to search
  121.   several sections, simply separate them by commas.  To search  in
  122.   the files  'Reason'  and 'Poll', type '-Reason,Poll Point'.  You
  123.   may not put any spaces in this list; '-SWI, Poll' is invalid.
  124.  
  125.   You  do not  have to remember  exact section names  either;  the
  126.   filename matching is also wildcarded, so '-Re,Po Poi' is just as
  127.   good as '-Reason,Poll Pointer'.
  128.  
  129.   By  default, searches do not cover all sections; they only cover
  130.   a basic set.  If you want  to search  all  sections, start  your
  131.   search with '-' on its own.  This  in fact does a wildcard match
  132.   on an empty file list, which matches everything.  Thus searching
  133.   for '- Plot' will match more than if you just search for 'Plot'.
  134.  
  135.   The basic search  set is defined by  the 'Indices$Search' system
  136.   variable, which is set in the !Run file.
  137.  
  138.   If you supply no search string at all, this help file is listed;
  139.   if you  supply a list of  search  files, but  no search  string,
  140.   (such  as  '-Swi,Reas'), the entire contents  of  the  specified
  141.   sections will be listed.
  142.  
  143.   Searching for the string '@File' will throw the first index file
  144.   which matches  'File*' into an  editor  window.  This  lets  you
  145.   quickly edit index files.
  146.  
  147.                                 -o-
  148.  
  149.   The following is a list of example searches:
  150.  
  151.   Search:          Output:
  152.  
  153.   'mod'            Standard references to 'mod'
  154.   '- mod'          ALL references to 'mod'
  155.   '-swi mod'       SWI references to 'mod'
  156.   '-reas,pol mou'  Reason or Poll references to 'mou'
  157.   '-cont'          Table of contents
  158.   '-'              Everything
  159.  
  160.                                 -o-
  161.  
  162.   The currently supplied sections are as follows:
  163.  
  164.   Command         - list of *commands
  165.   Contents        - list of contents
  166.   Event           - list of events
  167.   FileType        - list of file types
  168.   Format          - list of file format descriptions
  169.   Inkey           - list of negative inkey numbers
  170.   Message         - list of Wimp messages
  171.   OS_Args         - list of OS_Args calls
  172.   OS_Byte         - list of OS_Byte calls
  173.   OS_File         - list of OS_File calls
  174.   OS_Find         - list of OS_Find calls
  175.   OS_FSCtrl       - list of OS_FSControl calls
  176.   OS_GBPB         - list of OS_GBPB calls
  177.   OS_Module       - list of OS_Module calls
  178.   OS_SpriteO      - list of OS_SpriteOp calls
  179.   OS_Word         - list of OS_Word calls
  180.   Phone           - a phone book with me in it
  181.   Poll            - list of Wimp_Poll reason codes
  182.   Reason          - information on reason codes
  183.   Service         - list of module service calls
  184.   SWI             - list of kernel SWIs
  185.   VDU             - list of VDU calls
  186.   Vector          - list of software vectors
  187.  
  188.   The default searching set is:
  189.  
  190.   Contents OS_Byte OS_Word SWI Command Service Poll
  191.  
  192.                                 -o-
  193.  
  194.   The indices module supplies several *Commands:
  195.  
  196. . *Index performs the search from the command-line; parameters are
  197.   exactly the  same as the searches  which I have described above.
  198.   Typing '*Index Poi' will thus list index matches of 'Poi'.
  199.  
  200. . *DesIndex performs exactly the same function as *Index, but puts
  201.   the matches  in  the file  'LocalIndex:Results'  and throws this
  202.   back  into an  editor window.  It  can be  run from the  command
  203.   line, but  if  more  than  one search  is  performed, the former
  204.   outputs will be overwritten by the last one.  If LocalIndex$Path
  205.   is not defined, output goes to 'Index:Results'.  The file is NOT
  206.   removed after display.
  207.  
  208. . *ResoIndices  installs the  index  files in ResourceFS  for fast
  209.   searching at a cost of around  80Kb.  If you  set the  option in
  210.   the Options window, this is done automatically at startup.
  211.  
  212. . *DiscIndices  de-installs the index  files  from ResourceFS  and
  213.   returns to accessing them on disk, thus freeing some RMA space.
  214.  
  215. . *WimpIndices starts  up  the indices Wimp  task.  This should be
  216.   issued from the Switcher 'New task' menu.
  217.  
  218.                                 -o-
  219.  
  220.   If you want to use  this completely from the command line (never
  221.   entering  the desktop), run the !Install file; this installs the
  222.   module so you can  do  the searches from disk.  You MUST run the
  223.   !Install command file with a full pathname; otherwise this won't
  224.   know  where the  indices  truly are.  As  an  example,  put  the
  225.   following Obeyfile (called 'Index') in your Library:
  226.  
  227.   */scsi::Apocalypse.$.Utils.!Indices³.!Install
  228.   *Index %*0
  229.  
  230.   When you first type '*Index foo',  this will install the indices
  231.   and perform your  search;  subsequently searches won't  run this
  232.   obey script, they will run from the module.
  233.  
  234.   If you stick '*ResoIndices'  in between the two lines above, the
  235.   indices will be automatically put in ResourceFS.
  236.  
  237.   Note:  This does  not  define the 'LocalIndex$Path',  so  if you
  238.   subsequently  use  '*DesIndex', or  the Wimp  front end  without
  239.   running  !Indices³, output will  go into  the  main  application
  240.   directory.
  241.  
  242.                                 -o-
  243.  
  244.   Warning: use of '*DesIndex' (and thus the Wimp front-end) from a
  245.   shared filing system requires Wimp$ScrapDir to  be local to each
  246.   user.  Otherwise if two  people use the same file, complications
  247.   will occur.  If you don't want to use Wimp$ScrapDir,  change the
  248.   !Run file  -  comment out  the lines  altogether  if  you  want.
  249.   Output will then go into this application.
  250.  
  251.   This module and the variables and resources necessary to use the
  252.   indices all survive a soft-reset.
  253.  
  254.   If you find any mistakes in existing files, or you add  your own
  255.   bit of an index,  please mail it to me  (see address below)  and
  256.   I'll suitably alter the release version.
  257.  
  258.                                 -o-
  259.  
  260.   Searching is done with the 'Isrch' utility.  This is  located in
  261.   '!Indices³.Resources' and is  a  fairly  general-purpose  search
  262.   utility.  If you just run  it with no parameters, it  gives some
  263.   help.  There is also an 'Asrch' application;  this is a modified
  264.   Isrch which  runs in application space; the taskwindow  does not
  265.   multi-task  the 'Isrch' utility searcher.  'Asrch' should not be
  266.   used outside this application; it always forces throwback of the
  267.   output file.  'Msrch' is a version of  'Isrch' which buffers the
  268.   output in RMA.
  269.  
  270.                                 -o-
  271.  
  272.   If you  change  the  indices and want  to  re-install them  into
  273.   ResourceFS, just type '*ResoIndices' or re-run the  application.
  274.   The old files will be freed from ResourceFS automatically.
  275.  
  276.                                 -o-
  277.  
  278.   This application  is  FreeWare.  That is to  say,  permission is
  279.   granted  by  me  for  anyone  to  distribute  this  application,
  280.   unchanged and in its  entirety, providing that no profit is made
  281.   in  the process.  The application  may  not  be  distributed  if
  282.   modified   or  if  incomplete;  neither  may  parts   of  it  be
  283.   distributed separately.  Thus,  without express permission,  you
  284.   may not distribute the index files  herein separately from  this
  285.   application.
  286.  
  287.   Public domain libraries and such institutions may charge NO MORE
  288.   THAN  £1.00  for  distribution  on  a  medium  as   cheap  as  a
  289.   double-density disk, and NO MORE THAN  £2.00 on a more expensive
  290.   medium such as  a  high-density disk.  This  limit  includes all
  291.   charges;  post, packaging, and  copying,  and applies before any
  292.   special discounts.  It may  NOT  be  distributed along  with any
  293.   other  chargeable  product;  such  as  a big  magazine  or  more
  294.   expensive disk.
  295.  
  296.   If in doubt, try and  contact  me.  What with my current lack of
  297.   fixed abode, try electronic means in preference to solid means.
  298.  
  299.   This product is supplied as is; there is no warranty for it.  No
  300.   warranty, expressed or  implied, including but  not  limited to,
  301.   the implied  warranties of  merchantability  and  fitness  for a
  302.   particular  purpose, will  be considered valid.  The entire risk
  303.   as to the quality and performance  of  the  program is with you.
  304.   You  assume  any costs  that  may  emerge as  a  result of  this
  305.   product, its use, misuse,  abuse, or  as a result  of any  other
  306.   phenomenon associated it.
  307.  
  308.   In  no  event will  the  copyright holders, Acorn,  or any other
  309.   parties who  distribute  this  product,  be liable  to  you  for
  310.   damages,  including   any  general,   special,   incidental   or
  311.   consequential damages arising out  of the use of or inability to
  312.   use this product (including,  but not limited to, loss of  data,
  313.   or data being rendered inaccurate, or losses sustained by you or
  314.   third parties, or a failure of  the program to operate  with any
  315.   other programs).
  316.  
  317.                                 -o-
  318.  
  319.   Address:                 Merlin Hughes,
  320.                   Department of Computer Science,
  321.                       CB#3175 Sitterson Hall,
  322.             University of North Carolina at Chapel Hill,
  323.                             Chapel Hill,
  324.                            NC 27599-3175,
  325.                                U.S.A.
  326.  
  327.   Office Phone:           +1-919-962-1909
  328.  
  329.   Home Phone:             +1-919-968-1674
  330.  
  331.   Internet:              hughesm@cs.unc.edu
  332.                         merlin@maths.tcd.ie
  333.                        merlin@scrg.cs.tcd.ie
  334.                         chughes@maths.tcd.ie
  335.  
  336.   Contact me through my mum at:
  337.  
  338.   Address:                 Merlin Hughes,
  339.                         14 Kenilworth Park,
  340.                           Harold's Cross,
  341.                              Dublin 6W,
  342.                                Eire.
  343.  
  344.   Phone:                  +353-1-4901237
  345.  
  346.                                 -o-
  347.  
  348.   Thanx to Tom Hughes, Andrew Brooks, Dean Murphy, and David Bell,
  349.   who variously helped in the production of this.
  350.  
  351.                                 -o-
  352.  
  353.   Please, as I  say,  if  you find any  mistakes,  add  any useful
  354.   indices, or write a  better  browser, mail  me  so I can include
  355.                          them for everyone.
  356.  
  357.                               Merlin.
  358.